
 package com.ami.iusb;
 
 import java.awt.Frame;
 import javax.swing.JOptionPane;
 import javax.swing.JProgressBar;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 class ImageProgress
   extends Thread
 {
   JProgressBar progressBar;
   MountFolder folder = null;
   public boolean progress_complete = false;
   public int progress_result = 0;
   
 
   public ImageProgress(int paramInt, String paramString1, String paramString2, JProgressBar paramJProgressBar)
   {
     this.folder = new MountFolder(paramInt, paramString1, paramString2);
     this.progressBar = paramJProgressBar;
   }
   
   public boolean getImageSizeCheck() {
     if (!this.folder.ImageSizeCheck()) {
       return false;
     }
     return true;
   }
   
   public long getImageCreateTime() {
     return this.folder.imageCreateTime;
   }
   
   public void setImageCreateTime(long paramLong) {
     this.folder.imageCreateTime = paramLong;
   }
   
 
   public void setActionFlag(int paramInt)
   {
     this.folder.action_flag = paramInt;
     this.folder.createMBR();
   }
   
   public void stopProgress() {
     if (this.folder != null) {
       if (this.folder.isAlive()) {
         this.folder.stopRun();
         try
         {
           this.folder.join();
         }
         catch (InterruptedException localInterruptedException) {}
       }
       
       this.folder.stopAccessImage();
       this.folder = null;
     }
     
     stop();
     JOptionPane.getRootFrame().dispose();
   }
   
   public void run()
   {
     this.folder.start();
     
 
     while (this.folder.getPercent() <= 100)
     {
       if (this.folder.getPercent() == 100) {
         this.progressBar.setValue(this.folder.getPercent());
         break;
       }
       
       this.progressBar.setValue(this.folder.getPercent());
       try {
         Thread.sleep(200L);
       }
       catch (Exception localException) {}
       
 
       if ((!this.folder.isAlive()) && (this.folder.getPercent() < 100)) {
         this.progress_result = this.folder.image_result;
         JOptionPane.getRootFrame().dispose();
       }
     }
     this.progress_complete = true;
     JOptionPane.getRootFrame().dispose();
   }
 }


/* Location:              D:\Users\tianlin\Downloads\JViewer.jar!\com\ami\iusb\ImageProgress.class
 * Java compiler version: 5 (49.0)
 * JD-Core Version:       0.7.1
 */